package yx.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * BsSms entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_sms", catalog = "")
public class BsSms implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -5966021597561464577L;
	private Integer id;
	/**
	 * 接收手机号
	 */
	private String phone;
	/**
	 * 用户 id  可能uid为空
	 */
	private String uid;
	/**
	 * 发送内容
	 */
	private String context;
	/**
	 * 发送时间
	 */
	private Date sendDate;
	/**
	 * 状态  0成功 1失败
	 */
	private Integer status;
	/**
	 * 发送人
	 */
	private Integer optId;

	// Constructors

	/** default constructor */
	public BsSms() {
	}

	
	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "PHONE", length = 32)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "CONTEXT", length = 500)
	public String getContext() {
		return context;
	}


	public void setContext(String context) {
		this.context = context;
	}

	@Column(name = "SENDDATE")
	public Date getSendDate() {
		return sendDate;
	}


	public void setSendDate(Date sendDate) {
		this.sendDate = sendDate;
	}

	@Column(name = "STATUS", length = 1)
	public Integer getStatus() {
		return status;
	}


	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "OPTID")
	public Integer getOptId() {
		return optId;
	}

	public void setOptId(Integer optId) {
		this.optId = optId;
	}

	@Column(name = "UID")
	public String getUid() {
		return uid;
	}


	public void setUid(String uid) {
		this.uid = uid;
	}

	
	
}